package fun.codedesign.yinxue.code.php2java.rule.word;

public class ForeachWordRule implements WordRule {
    @Override
    public boolean isMatch(String originWord) {
        return "foreach".equals(originWord);
    }

    @Override
    public String invoke(String originWord) {
        // 替换为java的for
        return "for";
    }
}
